<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>封装自己的pop方法</title>
	<script>
		var arr1=[11,33,22,88]
		function fn(arr){
			          var arr2=[];
			          for(var i=0;i<arr.length-1;i++){
				      arr2.push(arr[i])
		}
         console.log(arr2)
		}
		fn(arr1)
	</script>
</head>
<body>
	
</body>
</html>